package com.cloud.neo4j.business.neo4j.car.controller;

import com.cloud.neo4j.business.neo4j.car.service.IPersonService;
import com.cloud.neo4j.common.response.ResponseBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试控制层
 * @date 2022-05-25
 * @author 刘房
 */
@RestController
public class PersonController {

    @Autowired
    private IPersonService personServiceImpl;

    @GetMapping("/person/ship")
    public ResponseBean findAll(){
        return ResponseBean.getResultsSuccess(personServiceImpl.findAll(null));
    }
}
